<?php

class Admin_IndexController extends Zend_Controller_Action {

    public function init() {
        /* Initialize action controller here */
    }

    public function indexAction() {

    }

    public function languageAction() {
        $params = $this->getRequest()->getParams();
        if (isset($params['lang']) && in_array($params['lang'], array('en', 'fr'))) {
            Zend_Registry::get('session')->lang = $params['lang'];
        }
        $this->_redirect('/');
    }

}
